define(function(require) {

  var Arrow = require('../shape/arrow')
  var zrender = require('zrender')

  var createEl = require('../util/createEl')
  var konva = require('konva')

  function Line(edge) {
    this.edge = edge
    var el = createEl('div', {
      width: edge.props.width,
      height: edge.props.height
    })
    edge.el.appendChild(el);
    this.zr = zrender.init(el);
  }

  Line.prototype.draw = function() {

    var points = this.edge.points;

    var shape = new Arrow({
      shape: {
        points: points
      }
    })

    this.zr.add(shape)
  }

  return Line
})